include ../../Makefile.env

# == make ===========================================
make: deploy

# == deploy =========================================
deploy:
	mkdir -p $(DEPLOYROOTDIR)etc/init.d/
	cp -f init.d/mqserver $(DEPLOYROOTDIR)etc/init.d/

# == install ========================================
install: check
	cp -f init.d/mqserver /etc/init.d/
	-chkconfig mqserver on || /bin/echo -e "\033[31;1mCan't install mqserver as service\033[0m"

# == uninstall ======================================
uninstall: check
	-chkconfig mqserver off
	rm -f /etc/init.d/mqserver

# == clean ==========================================
clean:;

# == distrib ========================================
distrib:;
